//
//  adaptViewCell.m
//  瞬间
//
//  Created by dlios on 15-7-1.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "adaptViewCell.h"

@implementation adaptViewCell

- (void)dealloc
{
    [_txtLabel release];
    [_smallTitleLabel release];
    [_showImageView release];
    [_bigTitleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.smallTitleLabel = [[UILabel alloc] init];
        self.smallTitleLabel.textColor = [UIColor lightGrayColor];
//        self.smallTitleLabel.backgroundColor = [UIColor redColor];
        self.smallTitleLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:self.smallTitleLabel];
        
        
        self.showImageView = [[UIImageView alloc] init];
//        self.showImageView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.showImageView];
        
        self.bigTitleLabel = [[UILabel alloc] init];
        self.bigTitleLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];
        self.bigTitleLabel.numberOfLines = 0;
//        self.bigTitleLabel.backgroundColor = [UIColor orangeColor];
        [self.contentView addSubview:self.bigTitleLabel];
        
        self.txtLabel = [[UILabel alloc] init];
//        self.txtLabel.backgroundColor = [UIColor yellowColor];
        self.txtLabel.numberOfLines = 0;
        [self.txtLabel sizeToFit];
        self.txtLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.txtLabel];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.smallTitleLabel.frame = CGRectMake(15, 0, 250, 40);
    
    self.showImageView.frame = CGRectMake(15, 40, self.contentView.frame.size.width - 30, 150);
    
    self.bigTitleLabel.frame = CGRectMake(15, 190, self.contentView.frame.size.width - 30, 60);
    
     self.txtLabel.frame = CGRectMake(15, 200, self.contentView.frame.size.width - 30, 150);

    
    
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
